package com.ers.modelconvert;

import com.ers.model.EducationInfo;
import com.ers.validmodel.EducationModel;

public class EducationConvert {
	public static EducationInfo toEduactionInfo(EducationModel em){
		EducationInfo e = new EducationInfo();
		e.setEducation(em.getEducation());
		e.setEntranceTime(em.getEntranceTime());
		e.setGraduateTime(em.getGraduateTime());
		e.setId(em.getId());
		e.setMajor(em.getMajor());
		e.setPritaceInfo(em.getPritaceInfo());
		e.setPrizeInfo(em.getPrizeInfo());
		e.setUniversity(em.getUniversity());
		return e;
	}
	public static EducationModel toEduactionModel(EducationInfo e){
		EducationModel em = new EducationModel();
		em.setEducation(e.getEducation());
		em.setEntranceTime(e.getEntranceTime());
		em.setGraduateTime(e.getGraduateTime());
		em.setId(e.getId());
		em.setMajor(e.getMajor());
		em.setPritaceInfo(e.getPritaceInfo());
		em.setPrizeInfo(e.getPrizeInfo());
		em.setUniversity(e.getUniversity());
		return em;
	}
}
